package com.ksy.common.login;

/**
 * Created by ksy on 2018/3/27.
 */

public interface LoginPlatform<T> {
    int Login_Code_QQ_Success = 9999;
    int Login_Code_QQ_Error = 9998;
    int Login_Code_QQ_Cancel = 9997;

    int Login_Code_WeChat_Success = 9996;
    int Login_Code_WeChat_Error = 9995;
    int Login_Code_WeChat_Cancel = 9994;

    boolean isCanLogin();

    void onSuccess(T data);

    void onError(String errorMsg);

    void onCancel();

}
